package com.fit.networkShop.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.fit.networkShop.interfaces.Seller;

public class SellersBean implements Sellers{
	private Map<String, Seller> sellers = new HashMap<String, Seller>();
	
	public Collection<Seller> retrieve() {
		return sellers.values();
	}

	public Seller save(Seller seller) {
		return sellers.put(seller.getName(), seller);
	}
	
	public Seller retrieveSingleSeller(String name) {
		return sellers.get(name);
	}
}
